package com.burgeon.backend.SHOPBACKEND.controller;

import com.burgeon.backend.SHOPBACKEND.service.BackendRFMService;
import com.burgeon.backend.stsutil.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@CrossOrigin
@RestController
@RequestMapping("backend/rfm")
public class BackendRFMController extends BaseController{
    @Autowired
    private BackendRFMService backendRFMService;

    @RequestMapping("data")
    public ResponseResult<HashMap> businessCard (String account,String type) {
        HashMap data = backendRFMService.getData(account, type);
        return new ResponseResult<HashMap>(SUCCESS,data);
    }

}
